/*
 * Copyright (c) 2017. 深圳一七网络有限公司. All rights reserved.
 */

package com.yiqi.zhiyuan.framework.api;


import com.suozhang.framework.entity.bo.Result;
import com.yiqi.zhiyuan.entity.vo.BrandChildVO;
import com.yiqi.zhiyuan.entity.vo.CarBrandVO;
import com.yiqi.zhiyuan.entity.vo.CarColorVO;
import com.yiqi.zhiyuan.entity.vo.CarVO;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface CarApi {
    /**
     * 首页获取司机汽车数据
     *
     * @param
     */
    @POST("api/driver/selectDriverCarList")
    Observable<Result<List<CarVO>>> selectDriverCarList();

    /**
     * 删除汽车
     * */

    @DELETE("api/driver/deleteCarInDriver/{ids}")
    Observable<Result<String>> deleteCarInDriver(@Path("ids") String ids);

    /**
     * 司机接单快捷设置
     * */

    @GET("api/driver/setCurrentVehicle/{carDriverId}")
    Observable<Result<String>> orderQuickSetup(@Path("carDriverId") Integer carDriverId );

    /**
     *查询汽车品牌
     * */

    @GET("api/driver/queryCarBrands")
    Observable<Result<List<CarBrandVO>>> queryCarBrands();

    /**
     *查询汽车品牌
     * */

    @GET("api/driver/queryCarBrandModel/{bcode}")
    Observable<Result<List<BrandChildVO>>> queryCarBrandModel(@Path("bcode") String bcode);

    /**
     * 查询汽车颜色
     * */
    @GET("api/driver/getAllColors")
    Observable<Result<List<CarColorVO>>> getAllColors();
}
